<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script type="text/javascript">
			<?php
			if(!empty($action)){
				if($action=='reload'){
			?>
					var current_url = location.href;
					current_url = current_url.replace("type=fb_sharp#access_token","type=fb&access_token");
					location.href = current_url;
			<?php
				} else {
			?>
					window.opener.postMessage('refresh','*');
					window.close();
			<?php
				}
			}
			?>
			
		</script>
	</head>
	
	<body>
	</body>
</html>